﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Election.BanToChucBinhBau
{
    public partial class TongKetUngCuVienUC : UserControl
    {
        private List<UserControl> _ungCuVienUCArr;
        public TongKetUngCuVienUC(List<UserControl> arr)
        {
            InitializeComponent();
            this._ungCuVienUCArr = arr;
        }

        private void TongKetUngCuVienUC_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < this._ungCuVienUCArr.Count; i++)
            {
                ThemUngCuVienUc uc = (ThemUngCuVienUc)this._ungCuVienUCArr[i];
                ThongTinUngCuVienUC ttuc = new ThongTinUngCuVienUC(uc.id, uc.memberName, uc.ucvID, uc.workingExperience, uc.imageSrcPath);
                this.flowLayoutPanel.Controls.Add(ttuc);
            }
        }
    }
}
